<%--
  Created by IntelliJ IDEA.
  User: win
  Date: 2020/10/25
  Time: 19:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加班级信息</title>
</head>
<body style="padding: 100px;">
<div>
    <%
        String error = (String) request.getAttribute("error");
        String result = (String) request.getAttribute("result");
        String message = "";
        if (error!=null&&error.equalsIgnoreCase("studenterror")){
            message="修改失败！";
        }else {
            if (result!=null&&result.equalsIgnoreCase("seccess")){
                message="添加成功！";
            }else if(result!=null&&result.equalsIgnoreCase("fail")){
                message="添加失败！";
            }
        }
    %>
    <h1><%= message %></h1>
    <a href="menu.jsp">
        <button>返回</button>
    </a>
    <form action="addgrade" method="post">
        请输入要添加的班级名称:<br>
        <input type="text" name="classname"><br>
        请输入要添加的班级的年级：<br>
        <input type="text" name="grade"><br>
        请输入要添加的班级的班主任：<br>
        <input type="text" name="adviser"><br>
        请输入要添加的班级的班级口号：<br>
        <input type="text" name="slogan"><br>
        请输入要添加的班级的班级人数：<br>
        <input type="number" name="classsize"><br>
        <input type="submit" value="添加">
    </form>
</div>

</body>
</html>
